<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2023/12/7
 * Time: 17:12
 */

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Database\Eloquent\Collection;

class UserCarInfoResource extends JsonResource
{
    public function toArray($request)
    {

        return [
            'name' => $this->name ?? '',
            'phone' => $this->phone ?? '',
            'id_card' => $this->id_card ?? '',
            'car_id' => $this->car_id ?? '',
            'car_frame' => $this->car_frame ?? '',
            'car_engine' => $this->car_engine ?? '',
            'car_number' => $this->car_number ?? '',
            'transact_name' => $this->transact_name ?? '',
            'car_license' => $this->car_license ?? ''
        ];
    }
}